package com.songlanyun.modules.marketing.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.marketing.seckill.entity.SeckillActivity;
import com.songlanyun.modules.marketing.seckill.entity.SeckillActivityTimeItem;
import com.songlanyun.modules.marketing.seckill.model.dto.SeckillActivityDTO;


import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 秒杀活动日期时间表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-23 17:30:11
 */
public interface SeckillActivityTimeItemService extends IService<SeckillActivityTimeItem> {

    PageUtils queryPage(Map<String, Object> params);

    SeckillActivityTimeItem setTimeItem(SeckillActivity seckillActivity, Date day, int weekOfDate);

    void verifySeckillActivity(SeckillActivityTimeItem timeItem);

    List<SeckillActivityTimeItem> getListBySeckillId(Long id);

    boolean removeBySeckillId(Long seckillId);

    SeckillActivityTimeItem getNowOne(Map<String, Object> params);

    SeckillActivityTimeItem currentTimeOneSeckill(String startTime, Long shopId);
}

